package com.easygem.controller.front;

import com.easygem.common.model.front.CustomerFollow;
import com.easygem.common.response.ResponseBean;
import com.easygem.front.service.CustomerFollowService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author luoxi
 * @version 1.0
 * @className CustomerFollowController
 * @Description TODO
 * @date 2025/3/7 10:00
 */
@Api(tags = "客户跟进")
@RestController
@RequestMapping("/customer/CustomerFollow")
public class CustomerFollowController {
    @Autowired
    private CustomerFollowService customerFollowService;

    //当前提醒时间的信息
    @ApiOperation(value = "提醒的信息", notes = "当前提醒时间的信息")
    @GetMapping("/findCustomerFollow")
    @ResponseBody
    public ResponseBean<List<CustomerFollow>> findAll() {
        List<CustomerFollow> customerFollowList = customerFollowService.selectCustomerFollowList();
        return ResponseBean.success(customerFollowList);
    }
}
